package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZlEquipmentFailursInfoMapper;
import com.ruoyi.system.domain.ZlEquipmentFailursInfo;
import com.ruoyi.system.service.IZlEquipmentFailursInfoService;

/**
 * 设备信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-19
 */
@Service
public class ZlEquipmentFailursInfoServiceImpl implements IZlEquipmentFailursInfoService 
{
    @Autowired
    private ZlEquipmentFailursInfoMapper zlEquipmentFailursInfoMapper;

    /**
     * 查询设备信息
     * 
     * @param type 设备信息主键
     * @return 设备信息
     */
    @Override
    public ZlEquipmentFailursInfo selectZlEquipmentFailursInfoByType(String type)
    {
        return zlEquipmentFailursInfoMapper.selectZlEquipmentFailursInfoByType(type);
    }

    /**
     * 查询设备信息列表
     * 
     * @param zlEquipmentFailursInfo 设备信息
     * @return 设备信息
     */
    @Override
    public List<ZlEquipmentFailursInfo> selectZlEquipmentFailursInfoList(ZlEquipmentFailursInfo zlEquipmentFailursInfo)
    {
        return zlEquipmentFailursInfoMapper.selectZlEquipmentFailursInfoList(zlEquipmentFailursInfo);
    }

    /**
     * 新增设备信息
     * 
     * @param zlEquipmentFailursInfo 设备信息
     * @return 结果
     */
    @Override
    public int insertZlEquipmentFailursInfo(ZlEquipmentFailursInfo zlEquipmentFailursInfo)
    {
        return zlEquipmentFailursInfoMapper.insertZlEquipmentFailursInfo(zlEquipmentFailursInfo);
    }

    /**
     * 修改设备信息
     * 
     * @param zlEquipmentFailursInfo 设备信息
     * @return 结果
     */
    @Override
    public int updateZlEquipmentFailursInfo(ZlEquipmentFailursInfo zlEquipmentFailursInfo)
    {
        return zlEquipmentFailursInfoMapper.updateZlEquipmentFailursInfo(zlEquipmentFailursInfo);
    }

    /**
     * 批量删除设备信息
     * 
     * @param types 需要删除的设备信息主键
     * @return 结果
     */
    @Override
    public int deleteZlEquipmentFailursInfoByTypes(String[] types)
    {
        return zlEquipmentFailursInfoMapper.deleteZlEquipmentFailursInfoByTypes(types);
    }

    /**
     * 删除设备信息信息
     * 
     * @param type 设备信息主键
     * @return 结果
     */
    @Override
    public int deleteZlEquipmentFailursInfoByType(String type)
    {
        return zlEquipmentFailursInfoMapper.deleteZlEquipmentFailursInfoByType(type);
    }
}
